module.exports = {
  // 设置端口号
  devServer: {
    port: 4225
  },

  /*
    处理控制台警告 Feature flag __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined.
    You are running the esm-bundler build of Vue,
    which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle
  */
  chainWebpack: config => {
    config.plugin('define').tap(definitions => {
      Object.assign(definitions[0], {
        __VUE_OPTIONS_API__: 'true',
        __VUE_PROD_DEVTOOLS__: 'false',
        __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false'
      });
      return definitions;
    });
  }
};
